<template>
    <div>
        <div class="book_title">
            <h1 align="center">补货记录</h1>
        </div>
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>系统中心</el-breadcrumb-item>
            <el-breadcrumb-item>补货记录</el-breadcrumb-item>
        </el-breadcrumb>
        <hr>
        <br>
    <el-table
            :data="replenishmentRecord"
            height="250"
            border
            style="width: 100%">

        <el-table-column prop="id" label="编号" width="130"></el-table-column>
        <el-table-column prop="bookName" label="图书名称" width="130"></el-table-column>
        <el-table-column prop="realName" label="补货人员名称" width="130"></el-table-column>
        <el-table-column prop="actualReplenishmentNum" label="实际补货量" width="130"></el-table-column>
        <el-table-column prop="exceedLack" label="超出缺少量" width="130"></el-table-column>
        <el-table-column label="完成时间" width="130">
            <template slot-scope="scope">
                <span v-if="scope.row.finishTime==null">未完成</span>
                <span v-if="scope.row.finishTime!=null">{{scope.row.finishTime | datefmt('YYYY/MM/DD')}}</span>
            </template>
        </el-table-column>

    </el-table>
    </div>
</template>

<script>
    export default {
        name: "getReplenishmentRecord",
        data(){
            return{
                replenishmentRecord:[]
            }
        },
        methods:{
            getReplenishmentRecord:function () {
                this.$http.post('/getReplenishmentRecord').then((res)=>{
                    this.replenishmentRecord=res.data.result.tbReplenishmentRecord;
                })
            }
        },
        mounted() {
            this.getReplenishmentRecord();
        }
    }
</script>

<style scoped>

</style>
